scoreboard players add xL mt_surf_fill 1

#loop body
scoreboard players set yL mt_surf_fill 0
function mountain:surf_fill/loop_y

execute if score xL mt_surf_fill < x1 mt_surf_fill run function mountain:surf_fill/loop_x